﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BusinessEntity;
using BusinessService;

namespace BusinessLogic
{
   public class UserManager
    {
       UserService us = new UserService();
       public bool IsExitByUserId(string userId)
       {
           return us.IsExitByUserId(userId);
       }

       public int AddOneByUserId(string userId, string name)
       {
           return us.AddOneByUserId(userId, name);
       }

       public int GetIdByUserId(string userId)
       {
           return us.GetIdByUserId(userId);
       }

       public int GetRoleIdByUserId(string userId)
       {
          return us.GetRoleIdByUserId(userId);
       }

       public User GetUserById(int id)
       {
           return us.GetUserById(id);
       }

       public int GetFitestUserIdByWorkOrder(string workorder)
       {
           return us.GetFitestUserIdByArticleId(workorder);
       }

       public List<User> GetUsersByroleId(int roleId)
       {
          return us.GetUsersByroleId(roleId);
       }

       public User GetUserByUserId(string userId)
       {
           return us.GetUserByUserId(userId);
       }
    }
}
